home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfsdefrg.zoo / Makefile < prev    next >
Encoding:
Makefile  |  1993-10-24  |  1.2 KB  |  54 lines

  1. # Makefile for edefrag, the Linux file system defragmenter
  2. #
  3. # Copyright (C) Stephen Tweedie, 1992
  4. # This file may be distributed under the terms of the GNU
  5. # General Public License. 
  6. # Modified for ST/Minxfs by S N Henson. 1993.
  7.  
  8. CC = gcc
  9.  
  10. #Recommended compiler options
  11. CFLAGS = -Wall -I.
  12. LDFLAGS =
  13.  
  14. PROGS = defrag.ttp defrag2.ttp
  15.  
  16. all:    $(PROGS)
  17.  
  18. defrag.ttp:    defrag.o minix.o misc.o buffers.o portst.o hdio.o tinyxhdi.o
  19.     gcc $(LDFLAGS) -o $@ $^
  20.  
  21. defrag2.ttp:    defrag2.o minix2.o buffers2.o misc.o portst.o hdio.o tinyxhdi.o
  22.     gcc $(LDFLAGS) -o $@ $^
  23.  
  24. defrag.o:    defrag.c
  25.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  26.  
  27. buffers.o:    buffers.c
  28.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  29.  
  30. minix.o:    minix.c
  31.     gcc $(CFLAGS) -DMINIXFS -c -o $@ $<
  32.  
  33. defrag2.o:    defrag.c
  34.     gcc $(CFLAGS) -DMINIXFS -DMINIX_V2 -c -o $@ $<
  35.  
  36. buffers2.o:    buffers.c
  37.     gcc $(CFLAGS) -DMINIXFS -DMINIX_V2 -c -o $@ $<
  38.  
  39. minix2.o:    minix.c
  40.     gcc $(CFLAGS) -DMINIXFS -DMINIX_V2 -c -o $@ $<
  41.  
  42. hdio.o:        hdio.c hdio.h
  43.     gcc $(CFLAGS) -DSUPER_CALL -c -o hdio.o hdio.c
  44.  
  45. tinyxhdi.o:    tinyxhdi.c
  46.     gcc $(CFLAGS) -DTINY_XHDI -DSUPER_CALL -c -o tinyxhdi.o tinyxhdi.c
  47.  
  48. clean:
  49.     rm -f *.o
  50.  
  51. clobber:
  52.     rm -f $(PROGS) *.o
  53.  
  54.